#! usr/bin/env python3

from flask import Flask
from flask import request
from flask import redirect
import os

from wxAPI import message

import Handler_wx
import Handler_sign_up
import settings as st


app = Flask(__name__)


@app.route(r"/", methods=['GET', 'POST'])
def index():
    return 'Hi, here is index.'


@app.route(r'/favicon.ico')
def favicon():
    return redirect(r'static/favicon.ico')


app.route(r'/wx', methods=['GET', 'POST'])(Handler_wx.interface_wx)
app.route(st.URL_SIGN_UP, methods=['GET', 'POST'])(Handler_sign_up.interface_sign_up)


if __name__ == "__main__":
    app.run(host="0.0.0.0", port=80)

